<?php
class Zend_View_Helper_ShowMultimediafileIndex {
    public function showMultimediafileIndex($view) {

    	$Multimediafile = $view->Multimediafiles;
    	$str='';
        $str .= '<table width="960">';
		$str .= '<tr>'; 
        $str .= '<table id="product-table" border="0" cellpadding="0" cellspacing="0" width="100%">';
        $str .= '<tr>';
        $str .= '<th class="table-header-repeat line-left minwidth-1"><a href="">Filde ID</a></th>';
        $str .= '<th class="table-header-repeat line-left minwidth-1"><a href="">Category ID</a></th>';
        $str .= '<th class="table-header-repeat line-left minwidth-1"><a href="">Tiêu đề</a></th>';
        
        $str .= '<th class="table-header-repeat line-left minwidth-1"><a href="">Mô tả</a></th>';
      
        $str .= '<th class="table-header-repeat line-left minwidth-1"><a href="">Loại</a></th>';
        $str .= '<th class="table-header-options line-left minwidth-2"><a href="">Thao tác</a></th>';        
        $str .= '</tr>';

        $i=0;
        foreach ($Multimediafile as $Multimediafile) {
            if($i>=1)
                $i=0;
            else
                $i++;
            
            if($i==1)
                $str .= '<tr>';
            else 
                $str .= '<tr class="alternate-row">';
                
            $str .='<td>'.$Multimediafile->file_id.'</td>';
             $str .='<td>'.$Multimediafile->category_id.'</td>';
            $str .='<td>'.$Multimediafile->title.'</td>';
           
            $str .='<td>'.$Multimediafile->description.'</td>';
            $str .='<td>'.$Multimediafile->file_type.'</td>';
            $str .= '<td class="options-width">';
            $str .= '<a title="Sửa" class="icon-1 info-tooltip" href="'.$view->url(array('controller'=>'Multimediafile', 'action'=>'edit', 'file_id'=>$Multimediafile->file_id)).'"></a> ';
            $str .= '<a title="Thêm" class="icon-3 info-tooltip" href="'.$view->url(array('controller'=>'Multimediafile', 'action'=>'add','file_id'=>$Multimediafile->file_id)).'"></a>';
            
            $str .= '<a title="Xóa" class="icon-2 info-tooltip" href="'.$view->url(array('controller'=>'Multimediafile', 'action'=>'delete','file_id'=>$Multimediafile->file_id)).'"></a></td>';
            $str .='</tr>';
        }
        $str .= '</table>';
        
        return $str; 

    }
}